package com.example.takeaway.model.vo;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @author 邢晨旭
 * {@code @date} 2023/10/26
 */
@Data
public class DashboardVO {
    /**
     * 营业额
     */
    private BigDecimal turnover;

    /**
     * 有效订单数
     */
    private Integer validOrderCount;

    /**
     * 订单完成率
     */
    private BigDecimal orderFinishRate;

    /**
     * 平均单价
     */
    private BigDecimal averagePrice;

    /**
     * 待接单数
     */
    private Integer waitOrderCount;
    /**
     * 待派送
     */
    private Integer waitDeliveryCount;

    /**
     * 已完成
     */
    private Integer finishCount;

    /**
     * 已取消
     */
    private Integer cancelCount;

    /**
     * 全部
     */
    private Integer orderCount;

    /**
     * 已启用菜品数量
     */
    private Integer enableDishCount;
    /**
     * 已停用菜品
     */
    private Integer disableDishCount;


    public DashboardVO() {
        this.turnover = BigDecimal.ZERO;
        this.validOrderCount = 0;
        this.orderFinishRate = BigDecimal.ZERO;
        this.averagePrice = BigDecimal.ZERO;
        this.waitOrderCount = 0;
        this.waitDeliveryCount = 0;
        this.finishCount = 0;
        this.cancelCount = 0;
        this.orderCount = 0;
        this.enableDishCount = 0;
        this.disableDishCount = 0;
    }
}
